from typing import Tuple, List

import win32api


def get_display_info() -> Tuple[any, List[any]]:
    """
    获取显示器信息
    :return: 主显示器信息，副显示器信息
    """
    monitors = win32api.EnumDisplayMonitors()

    # 获取主副显示器信息
    primary_monitor = None
    secondary_monitors = []
    for monitor in monitors:
        monitor_info = win32api.GetMonitorInfo(monitor[0])
        if monitor_info.get('Flags') == 1:  # 主显示器的标志位为1
            primary_monitor = monitor
        else:
            secondary_monitors.append(monitor)

    return primary_monitor, secondary_monitors
